﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExecuteSql.aspx.cs" Inherits="Whir_System_Module_Config_ExecuteSql" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>执行 SQL 命令</strong></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">SQL 命令： </td>
                <td class="form_td">
                    <asp:TextBox ID="txtSQL" runat="server" Height="100px" TextMode="MultiLine" Width="400px"></asp:TextBox>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">认证码： </td>
                <td class="form_td">
                    <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText"></td>
                <td class="form_td">
                    <asp:Button ID="btnSumbit" runat="server" CssClass="btn_default" Text="提交" OnClick="btnSumbit_Click"
                        OnClientClick="return checkForm();" />
                </td>
            </tr>
        </table>
        <asp:GridView ID="GridView1" runat="server" Width="100%" BackColor="#CBCBCB">
            <HeaderStyle CssClass="grid_Title" Height="20px" />
            <RowStyle CssClass="grid_td" Height="23px" />
        </asp:GridView>
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA"
            id="divMessage" runat="server" visible="false">
            <tr>
                <td class="form_td"><strong>无法找到匹配的数据</strong> </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

<!-- 验证-->

<script language="javascript" type="text/javascript" src="../../../Script/Validate.js"></script>

<script type="text/javascript">
function checkForm(){
        var vs = [
        "txtSQL|noNull|请输入执行语句！",
        "txtCode|noNull|请输入认证码！"
        ]; 
        if(Validator(vs))
           return true;
        else
            return false;    
}
</script>

